onCreateActionView
Factory method for creating new action views.
Return
A new action view.
Factory method called by the Android framework to create new action views. This method returns a new action view for the given MenuItem.
If your ActionProvider implementation overrides the deprecated no-argument overload onCreateActionView, overriding this method for devices running API 16 or later is recommended but optional. The default implementation calls onCreateActionView for compatibility with applications written for older platform versions.
Return
the new action view
Parameters
forItem
MenuItem to create the action view for